// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.world;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import zombie.scripting.ScriptManager;

public class DictionaryDataClient extends DictionaryData {
    @Override
    protected boolean isClient() {
        return true;
    }

    @Override
    protected void parseItemLoadList(Map<String, ItemInfo> var1) throws WorldDictionaryException {
    }

    @Override
    protected void parseCurrentItemSet() throws WorldDictionaryException {
        for (Entry entry : this.itemTypeToInfoMap.entrySet()) {
            ItemInfo itemInfo = (ItemInfo)entry.getValue();
            if (!itemInfo.removed && itemInfo.scriptItem == null) {
                itemInfo.scriptItem = ScriptManager.instance.getSpecificItem(itemInfo.fullType);
            }

            if (itemInfo.scriptItem != null) {
                itemInfo.scriptItem.setRegistry_id(itemInfo.registryID);
                itemInfo.scriptItem.setModID(itemInfo.modID);
                itemInfo.isLoaded = true;
            } else if (!itemInfo.removed) {
                throw new WorldDictionaryException("Warning client has no script for item " + itemInfo.fullType);
            }
        }
    }

    @Override
    protected void parseObjectNameLoadList(List<String> var1) throws WorldDictionaryException {
    }

    @Override
    protected void backupCurrentDataSet() throws IOException {
    }

    @Override
    protected void deleteBackupCurrentDataSet() throws IOException {
    }

    @Override
    protected void createErrorBackups() {
    }

    @Override
    protected void load() throws IOException, WorldDictionaryException {
    }

    @Override
    protected void save() throws IOException, WorldDictionaryException {
    }

    @Override
    protected void saveToByteBuffer(ByteBuffer var1) throws IOException {
    }
}
